<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>{$title}</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="format-detection" content="telephone=no">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="stylesheet" href="/static/index/amazeui/css/amazeui.min.css"/>
<link rel="stylesheet" href="/static/index/default/style.css"/>
<script src="/static/index/amazeui/js/jquery.min.js"></script>
<script src="/static/index/amazeui/js/amazeui.min.js"></script>
<style>
	.active{
		color: red;
		background: #f7f8f8;
		padding: 8px;
	}
</style>
</head>

<body>
	<div class="container">
		<header data-am-widget="header" class="am-header am-header-default my-header">
	      <div class="am-header-left am-header-nav">
	        <a href="javascript:window.history.back();" class="">
	          <i class="am-header-icon am-icon-chevron-left"></i>
	        </a>
	      </div>
	      <h1 class="am-header-title">
	        <a href="javascript:;" class="title" style="line-height: 4rem;">{$title}</a>
	      </h1>
	      <div class="am-header-right am-header-nav">
	        <a href="/index/index.html" class="">
	          <i class="am-header-icon  am-icon-home"></i>
	        </a>
	      </div>
	    </header>
		<div class="uchome-info">
	    	<div class="uchome-info-uimg">
	        	<img src="/static/index/default/img1.jpg" />
	        </div>
	        <div class="uchome-info-uinfo">
	        	{if condition="$Think.session.indexUserInfo.name == ''"}
            		<p>{$Think.session.indexUserInfo.username}，欢迎光临！[<a href="/index/index/loginOut.html" class="white">安全退出</a>]</p>
				{else /}
					<p>{$Think.session.indexUserInfo.name}，欢迎光临！[<a href="/index/index/loginOut.html" class="white">安全退出</a>]</p>
				{/if}
	        	
	            <p>帐号：{$Think.session.indexUserInfo.username}</p>
	            <p>
	            	{if condition="$Think.session.indexUserInfo.type == 1"}
	            		评教次数：<span class="red usererecord">{$Think.session.indexUserInfo.usererecord}</span>
		            	 <i class="am-icon-arrows-v"></i>
		            	 被评次数：<span class="red userberecord">{$Think.session.indexUserInfo.userberecord}</span>
					{else /}
						评教次数：<span class="red usererecord">{$Think.session.indexUserInfo.usererecord}</span>
					{/if}
	            	
	            </p>
	        </div>
	    </div>
	    <!--头部导航-->
	    <div class="am-cf uchome-nav">
	        <ul class="am-avg-sm-5">
	            <li><a href="/index/user/index.html">我的资料</a></li>
	            <li><a href="/index/user/mypingjiao.html">我的评教</a></li>
	            <li><a href="#">评教结果</a></li>
	            <li><a href="#">消息中心</a></li>
	            <li><a href="#">帮助中心</a></li>
	        </ul>
	    </div>
	    <style>
			.active{
				color: red;
				background: #f7f8f8;
				padding: 8px;
			}
		</style>
	    <script>
			$(function() {
				/*$('.usererecord').text(parseInt($('.usererecord').text())+parseInt(window.localStorage.getItem('oes_usererecord')));
				$('.userberecord').text(parseInt($('.userberecord').text())+parseInt(window.localStorage.getItem('oes_userberecord')));
				*/
	            $('.am-avg-sm-5>li').find('a').each(function() {
	            	console.log($(this).text())
	               if($(this).text() == $(".title").text()){
	               		$(this).siblings("a").removeClass("active").css("color","white");
        				$(this).addClass("active").css("color","red");
	               }
	            })
	
	        })
		</script>
	</body>
</html>
